package com.kong.dao.entity;

import java.util.Date;
import io.swagger.v3.oas.annotations.media.Schema;
import org.seed.mybatis.core.annotation.PrimaryKey;
import org.seed.mybatis.core.annotation.KeyStrategy;
import org.seed.mybatis.core.annotation.Table;
import lombok.Data;


/**
 * Table: datasource
 * Comment: 数据源
 *
 * @author glin
 * @date 2024-04-16
 */
@Table(name = "datasource", key = @PrimaryKey(name = "id", strategy = KeyStrategy.NONE))
@Data
@Schema(title = "数据源")
public class Datasource {

    /** 主键 **/
    @Schema(title = "主键")
    private String id;

    /** jdbc连接方式 **/
    @Schema(title = "jdbc连接方式")
    private String url;


    @Schema(title = "jdbc数据库驱动")
    private String jdbcDriverClass;

    /** 数据库用户名 **/
    @Schema(title = "数据库用户名")
    private String username;

    /** 数据库密码 **/
    @Schema(title = "数据库密码")
    private String password;

    /** 数据库类型 **/
    @Schema(title = "数据库类型")
    private String dbType;

    /** 创建或更新时间 **/
    @Schema(title = "创建或更新时间")
    private Date updatedAt;



}